<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- 后台登录页面 -->
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="${pageContext.request.contextPath}/pages/css/userlogin.css"
	rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/scripts/jquery-1.7.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		//该页面不能被iframe使用
		if(top.location!=self.location){
		//这个会记忆back
		// top.location.href = self.location.href;
		 //这个不会记忆back
		top.location.replace(self.location);
		}
	})
</script>

<style type="text/css">
<!--
body {
	background: #fff;
	margin: 0;
	padding: 0;
	color: #333;
}

h1 {
	float: left;
	width: 410px;
	margin: 20px;
	display: inline;
}

h1 img {
	float: left;
}

h1 span {
	float: right;
	width: 290px;
	height: 47px;
	background: #ebebeb;
	font: 22px/46px "黑体";
	text-indent: 20px;
}

.login-body {
	margin-top: 50px;
	height: 392px;
	width: 100%;
	background:
		url(${pageContext.request.contextPath}/pages/css/images/lor_bg.gif)
		repeat-x;
}

.login-con {
	width: 450px;
	height: 392px;
	background:
		url(${pageContext.request.contextPath}/pages/css/images/login_bg.gif)
		no-repeat;
	margin: 0 auto;
}

.login {
	float: right;
	width: 290px;
	margin-right: 20px;
	display: inline
}

.login li {
	float: left;
	width: 100%;
	margin-bottom: 20px;
}

.login label {
	float: left;
	width: 100%;
	font-size: 14px;
	margin-bottom: 3px;
}

.login input {
	float: left;
	padding: 4px 2px;
	margin: 0
}

.submit {
	float: left;
	border: none;
	width: 70px;
	height: 28px;
	background: transparent
		url(${pageContext.request.contextPath}/pages/css/images/lg_buttom.gif)
		no-repeat;
	cursor: pointer;
	font-size: 14px;
	color: #fff;
	font-weight: bold;
}

.errors {
	color: red
}

.wwerr {
	color: red;
	float: right;
	border: 1px solid;
}
-->
</style>
</head>
<body>
	<!-- 
	<s:property value="#request" />
	<s:property value="#request.get('javax.servlet.forward.context_path')" /> -->
	<div class="login-body">
		<div class="login-con">
			<h1>
				<img src="" alt="" /><span>数据管理后台</span>
			</h1>
			<div class="login">
				<s:if test="hasActionErrors()">
					<div class="errors">
						<s:actionerror />
					</div>
				</s:if>
				<s:form action="login!login" namespace="/admin" method="post">
					<table>
						<tr>
							<td><s:textfield key="user.username" /> <s:password
									key="user.password" />
							</td>
						</tr>
						<tr>
							<td><s:submit name="submit" key="common.text.login"
									cssStyle="margin-left:150px;width:60px" /></td>
						</tr>
					</table>
				</s:form>
			</div>
		</div>
	</div>
</body>
</html>
